import { request } from '../config.js'


// 角色列表
export const getuserlist = (params) => {
  return request.get({
    url: '/user/index',
    params
  })
}


// 角色状态修改
export const getuserchange = (params) => {
  return request.postjson({
    url: '/user/change',
    data: JSON.stringify(params)
  })
}

// 角色删除
export const getuserdel = (params) => {
  return request.get({
    url: '/user/delete/' + params.id,
  })
}


// 角色详情
export const getuserinfo = (params) => {
  return request.get({
    url: '/user/info/' + params.id
  })
}

// 角色添加
export const getroleadd = (params) => {
  return request.postjson({
    url: '/user/add',
    data: JSON.stringify(params)
  })
}

// 角色编辑
export const getroleedit = (params) => {
  return request.postjson({
    url: '/user/update',
    data: JSON.stringify(params)
  })
}


// 角色导出
// export const getroleexport = (params) => {
//   return request.get({
//     url: '/user/export/username=' + params.username + "create_by=" + params.create_by + "status=" + params.status
//   })
// }


